import 'package:flutter/material.dart';
import 'package:date_format/date_format.dart';

//void main() => runApp(PkgTest());

class PkgTest extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'pkg-test',
        theme: ThemeData(
            primaryColor: Colors.cyan,
            brightness: Brightness.light,
            accentColor: Colors.black),
        home: Demo());
  }
}

class Demo extends StatelessWidget {
  Widget build(BuildContext context) {
    print(formatDate(DateTime.now(), [mm, '月', dd, '日', hh, ':', n]));
    return Scaffold(appBar: AppBar(title: Text('头')), body: Text('嘻嘻嘻嘻d'));
  }
}
